using System;

namespace Entities
{
    public class Person : Entity
    {
        public virtual Name Name { get; set; }
        protected String __Name { get; set; }
        public DateTime Brithday { get; set; }
        public virtual Country Country { get; set; }
        protected String __Country { get; set; }
    }

    class MyClass : Person
    {
        public override Country Country
        {
            get => new Country();
            set { __Country = value.Id; }
        }
    }
}

